package com.bang.study.spring.listener;

import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName: MyApplicationListener
 * @author: BANG
 * @Date: 2019/11/13 16:49
 * @Version: 1.0
 * @Modified By:
 * @Desc: TODO
 */
@Component
public class MyApplicationListener implements ApplicationListener<ApplicationStartedEvent> {
    @Override
    public void onApplicationEvent(ApplicationStartedEvent event) {
        System.err.println("MyApplicationListener==================="+event.getTimestamp());
        System.err.println("MyApplicationListener==================="+event);

    }


}
